package cn.tang.tframe.sdm.enums;

import cn.tang.tframe.sdm.validation.ValidFieldLimitGroup;
import cn.tang.tframe.sdm.validation.ValidInsertNotNullGroup;
import cn.tang.tframe.sdm.validation.ValidUpdateNotNullGroup;

/**
 * 功能描述
 *
 * @author tancongwei
 * @create 2017-04-2017/4/20 下午5:20
 * @since v1.0
 */
public enum CheckGroup {
    DEFAULT(null),
    INSERT(ValidInsertNotNullGroup.class),
    UPDATE(ValidUpdateNotNullGroup.class),
    LIMIT(ValidFieldLimitGroup.class);
    private Class validGroup;

    private CheckGroup(Class validGroup) {
        this.validGroup = validGroup;
    }

    public Class getValidGroup() {
        return validGroup;
    }
}
